package com.james.feign.hystrix;

import com.james.feign.UserServiceFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: UserServiceFeignHystrix
 * @Author: JamesWang
 * @Date: 2021/4/22 22:47
 * @Description:
 * @Version:1.0
 */
@Component
@Slf4j
public class UserServiceFeignHystrix implements UserServiceFeign {
    @Override
    public Map<String, Object> getScore() {
        log.error("远程调用失败调用方法为");
        Map<String, Object> map = new HashMap<>(8);
        map.put("code",400);
        map.put("msg","远程调用失败");
        return map;
    }
}
